adding unit tests for filter