match-test evaluates both stdout and stderr. and, clean the various parts