Expand expect_payment_failed!() to take error codes and use it more