Testcase for HHH-8154 

HHH-8154: class mismatch when reattaching object with natural-id in shared cache