Dynamic loop test