Fixed issue with integration test for filtering.
Removed some unnecessarily brittle and unforgiving code.