[test] add reader, once and write tests