add promise polyfill for safari in test file