Add test for core/util/XUtil.php