Made the wrong constructor private.
Fix cookie tests for API changes.