finished writing tests for Filter