unit test passed for isInDatabase()