Added test coverage for email and webhook notification

Fixed expression in exception trap

Change-Id: I2e545153aae114b9d0fa86f7202a8cac35e3120d