unit test for Filter model