Enhance loop test