Fixing condition in testToCOOKIEString() method.