added unit test for WordFilter