improving newline outputs in test infrastructure