fixing test db creation for tests