FIX BUG in ObjectPathForId ADD initial test for registry