-sub run_tests {\r
+sub run_tests {
+my $schema = shift;\r
\r
# this test will check to see if you can have 2 columns\r
# in the same class pointing at the same other class\r
\r
plan tests => 4;\r
\r
-my $item = DBICTest->class("SelfRef")->find( 1 );\r
+my $item = $schema->class("SelfRef")->find( 1 );\r
is( $item->name, 'First', 'proper start item' );\r
\r
my @aliases = $item->aliases;\r