Added cookie tests and fixed cookies for empty header. Added missing cookie header.