issue #5253: fix invalid native object bug in AsstesManagerTest