Refactor IO tests a bit around tinkergraph assertions.