Small fix for COOKIELOCALE. Added tests. Patch.