Expose the creation of the args array for testing