adding support and tests for FOR directive