Tests: Replace resource loader with AMD the minimal way