passing read/write test in memory