Updated test case for FilterTest class