feat(filter): add tests, remove some todos, etc.

Closes #141