added some tests for iostreams. there is an error which I don't understand now