XWIKI-7941: Update unit test.

(cherry picked from commit dec7e1b6565a6fb36211cae380cfbaff97be19c5)