Fix filtering tests.