Fixing view helper test.

Pull request #2743 was failing.