Added emailing of test result