added test to verify the functionality of the filter applied to search results