Add some basic tests for filters

This depends on #526 and #527. The tests will fail until those are merged.
@cormier are you aware of a nicer way to do this?