Added a for-loop test