MDL-39864: Add unit tests covering invalid criteria types