Fix filtering tests.
Merge pull request #103 from frodsan/fix_filtering_tests

Fix filtering tests.