global: send notification mail on failure

- add tests for notification mail sending
6 jobs for 40-send-notification-mail-for-http-upload in 26 minutes and 35 seconds (queued for 1 minute and 58 seconds)