Tests and misc changes on object, registry and pool