CRM-14449 case api fix _spec functions