Open descriptors lazily
Fix crash in Hash
Fix test