Fix #3241.

The issue was solely in the tests: a stray `forEach`.