Cookie setting test failed on PHP 5.4 because cookie retrieval order

Fixes test case, that were expecting cookies are reported (by PHP) in same order, as they were set by Driver.

Unfortunately that didn't work in PHP 5.4.