basic cookie handling and updated cookie test handler