Unit testing for filter functionality.