Added unit test for xar plugin.