fixed cookie passing, new test cases