Fixed the database test