Added tests for the registry obj.