converting asserts to sinon.assert stmts