added test for database