fixing mailer tests and email notification bar when user is not logged in :disappointed: