Added tests for filter