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

This should solve the failing tests. I also added one test for the original password check.