Add some basic tests for filters

This depends on #526 and #527