test for localStorage