make test work under polyfills