Fixed divisor_in_residue_class_lenstra and added test code.