test_orphan fixed for opaque keys