[fix][test] Added test for the correct read/writable states