Test localStorage without segfault

The test is successful if access localstorage does not cause the JVM to crash with a SEGFAULT.

Done