add cookie test.
add cookie test.