added tests for localforage persistence

Added separate files for both.