Add some filtering tests (one of which is currently failing due to reasons I cannot surmise.