This test actually asserts the suppression of the exception when a valid JSON is encountered.
I recommend creating a new test for the given purpose.

Since this test fails anyway I recommend setting a different invalid JSON such as `document.cookie = 'invalidJSON'` and do not use `$.cookie` API