[Misc] Add unit tests in xwiki-platform-wiki-user-script. Remove some TODOs.