Add a test to demonstrate the problem with JSON-ification.

https://github.com/ariya/phantomjs/issues/12615