Unit tests for Filter.