extended some old tests in runntest to cover new stuff
refactored all print to STDOUT to print to StringIO parameter
added test for Head and Tail