Cucumber scenario + implementation: parser error handling for jUnit output format.
Minor code cleanup (common code was moved to a helper method)