Fix IO reads and add cosimulation tests for them