More tests

- Added new class GroupByQueryFixture
- Wrote a few more tests in other classes
- Possible code changes required to handle nulls for intersection