add cookie test

add an option to enable/disable cookies in the cookie test