fix cookie test