Added filter to method and test case