Fix calls to `each` in tests.