simplified setting of test attributes

Removed code that did the validation of test time and type,
turned out that control_data was doing that validation and it
was redundant here, moreover it was not possible to set int
values as control_data would catch them before it ever gets here.