Added some tests to the localStorage feature.