Fix asyncTests when using an AMD loader and update platform.js.