Uff, we really should switch to sinon.js. Also manually phrasing the assert messages below is super tedious.