Make test_cookie.rb 1.8.7 friendly