Updated test code for filter.