Move arg parsing code to Arg struct impl, add args parsing tests