Fix filter's tests with wrong logic