refactoring, test for ArgumentsUtil.java