fixing up user sessions spec and bug fixes
fixed up cookies spec