Update controller.spec.js

Companion to pr #1122