added tests for storage

complements #39