change stdout to stdin test