Fix tests when using an AMD loader.