MDL-47726 availability: fix tests when there is a text custom field