Adding promise to async test so that it can run in older browsers without native promise support