use rspec helper for valid_attribute