Fixed a bug where cookies weren't being saved, causing command line unit tests to fail