add better error handling for localstorage copy
storage interface refactoring and add copy tests

1. refactor storage interface tests to inherit from test_common.TestApi
2. add new tests for the copy API