XWIKI-6882 : Improvements on user changing password. Fix functional tests