Converted bloated command execution in test cases to CommandUtil.execute
statement