minor fixes to cmdlet input and unit tests