mdc and repeat test function added