Added command line parsing tests
Output when stdout is not a tty. Cleanup test scripts.