Tests for write and read property