verify write to stdout