TestGen rewritten for missing values