Add and fix unit tests in xwiki-platform-extension-handler-xar.