Implemented tests for raw forEach loop