Add unit tests for some IO classes.
More complete test coverage. Now covers strings and line reading as well as error conditions.