You can do this temporary workaround https://github.com/openmrs/openmrs-module-idgen/blob/3ce39e786461ffc7b2373c3642eda140e2dc2707/omod/src/test/java/org/openmrs/CodedOrFreeText.java