Fix tests for bad cookies