fix InMeroryStorage::reset()
Added more tests.