Added unit test for XBArrayMerger