Tests, simplification and fix of critical bug

There is some strange and critical bug https://github.com/gpc/grails-greenmail/issues/6
I made fix for it.
Hope comments will be enough

Thanks for review!