Added a try..catch to the cookies test