Fix Promise test polyfill