add tests for localStorage stub