Added tests and local storage adapter