Add test for searching and filtering records