Fix test in JRegistry using JObject