fixed the cookie test issue