attr_reader and attr_writer should return nil