Added loop test