Add tests checking for clientId leak into emitted events and that middleware and shim behave correctly when GA cookie is present