XWIKI-9532: Add Locale support to XWiki#getDocument API taking DocumentReference
* improve tests