fixed cookie error in test