Filter functionality and tests.