In PaaS I/O exercise (https://exercism.org/tracks/rust/exercises/paasio) there are tests verifying the behaviour on read/write errors, but they only check that the error is returned. I think it would make sense to verify that the write / read is not counted in case of error.