Add test for database searching