Fix asyncTests when using an AMD loader.