Updated local-storage module and added tests. https://trello.com/c/Ls964WKl