Add assert.ok to assertCalledWith to be sure function was called.

Without this, the error sounds too cryptic: Cannot read property 'length'
of undefined.