Yes, very good point - I've separated out the onResend function and added a test as well.