add tests for methods #read_attribute and #write_attribute