Added tests for desired filter behaviour

We didn't have test coverage for all of the desired query filter behaviour