deferred tests with sinon