Ensure expectDeprecate with callback does not double assert.