You want a test that when you return a pending-but-eventually-fulfilled promise from the finally callback, the resulting promise is delayed until that fulfilled promise fulfills. (But still has the original value, of course.)