Fixed test break.
Fixes #2482.