add localStorage test

Closes #20
Merge pull request #21 from resource/fix-localstorage

add localStorage test