Test for getting alerting email address
Fix test, add new test