Add unit test for stack overflow in Chrome.

See https://code.google.com/p/chromium/issues/detail?id=56588