[#62889914] Move query test to core

I should have done this when I did https://github.com/alphagov/vcloud-tools/pull/102 but I overlooked it.
Merge pull request #114 from alphagov/query-test-to-core

[#62889914] Move query test to core