add localStorage test

Closes #20