notification test re-added moking sendmail function