There is a racing problem with notification.
I'm able to always reproduce the problem in my developing environment.
On other machines I had to add a Thread.sleep(1000) after the notify() of the MailRepository.store() to put evidence on this bug.
PS: I already committed a patch for this issue. Just added this for future reference and to be able to have persistent comments.