Add test for bad cookie parsing