simplify testing of translated attributes in model/controller specs by changing factories to use hash values.