Unittest with sinon