Added test repetition loop