Fixed bug in scenario, added support for sending emails on failures