XWIKI-10517: Create the XWiki.Mail class/document at initialization time
* Fixed functional test