Use newline when writing to stdout.

The unit tests do not test stdout. Need a regression suite to test stdout to catch these conditions.
Add stdio_tests.sh to test actual stdio

Any file dependent tests are in this bash script.