attr_writer test