Fixed filtering and added inverse tests

- Fixed inverse filtering by features that was broken before
- Modified all filtering tests to also test inverse filtering.