fix localstoragetests to work with refactored http-api

Please note that running the TestStorageApi from test/unittests.py with the local storage config gives you almost the same results. Difference are that
1. only API functions are tested, nothing internal
2. the setup and teardown methods do not rely on the localstorage  working, but use the OS-level functions directly.