fixed loops test