Promise for the changed unit test was incorrect, so correcting it in this commit