Fix nested `then` tests

A false positive in Sinon (fixed in f478c2ff) allowed the introduction of an
incorrect test in which the assertion was triggered before all handlers had
been resolved. This commit ensures that the call order is correct.