Added unit tests for forloop.first, forloop.counter, and forloop.counter0.