Convert _base/query tests to Intern

This PR converts the legacy _base/query tests to Intern. It loads the test document into an iframe, calls `dojo.setContext` to switch to the iframe, and runs the tests.