Fix cookie test