fixing unit test for secure cookies.