Removing forEach from the module (but keeping it in tests)

Related to #7.