test: add test for readwrite issue