The tests are failing here because `error` is undefined.  I'm unsure where the rejection is coming from that isn't giving a reason.