Add tests for for...of loop