input for loopValidator should be array
change interface and test