Separate tests are confusing. Can we detect if we need to mock the document object and combine these? As it is, requirejs enabled test will use mock document object even if run in a browser and the real document object is available.