added async control over mock requestPromise