Fix for broken test in #1348

Fixes the error in a test added by #1348.