fix sinon + phantom