Remove function calls from for loop test part

Change-Id: If1f8996854889b526fef96cd29a153e0b36e9133