adjusted relation_io_tests, reading and writing