[test] added test for XWIKI-8781