added more rspec tests for notification and sending mails now logs it to logs/mail.log