Inherit from FailureERR instead of TestFailureERR

Also, enhance the unit tests to ensure that an email would be sent
when expected

Change-Id: I3fb313fdcf6bff252a8f407c2d2d0269d8fd7ad1
2 files changed