Tweak command test to trim off newlines added to command output