added dynamic test iteration