Backup and restore object registry for tests

Without this, the object registry can become cluttered with test objects,
which may conflict with each other, depending on the order and pairing
of testr processes.

Related to unified-object-model

Change-Id: I77d3beebfb963cdc24c49eebb38ca8a768c69503
Merge "Backup and restore object registry for tests"