Make test case use resolved promises