Added several more tests and some checks to the io code