VE-1196: Fix problem with ve.ce.Document: getRelativeRange (mwBlockImage / mwInlineImage) test.

This fix is a port of upstream change that ensure that all tests are loaded in the top of the page (html) to avoid "weird" race conditions.