add tests for empty location in cookies