Add a file containing utility methods for tests.

Currently this script only exports two methods to the global scope:

  * `showTestIframe` To show the frame running the single tests in the
    testsuite.
  * `hideTestIframe` This hides that particuluar iframe.
Use the test-utility file in tests.
Fix VectorLegend test through delaying checks.