Fix cookie test.