Use of sinon stubs