Added more tests for filter logic.