Fixed tests to use test databasePrefix for db_select