Added email notification tests