cookie handle test