adding test for database