Improving code coverage by manually setting cookie in test