add tests for issue #13 (toFilter)