[filter] add tests.