so the first assert.fail will catch errors in the first promise, the second will catch errors in the first promise's success handler.