Add basic unit tests for filterByWord filter

More tests will be needed to cover edge cases
and other filtering features I'm missing