-sub run_tests {
-my $schema = shift;
+use strict;
+use warnings;
+
+use Test::More;
+use lib qw(t/lib);
+use DBICTest;
+
+my $schema = DBICTest::init_schema();
my $queries;
$schema->storage->debugcb( sub{ $queries++ } );
$schema->storage->debug(0);
-}
-
-1;