Added cookie ckear to logout, and added test for it