Run tests using arrays which are better than maps.
Bug fix: send cookies correctly.