JRegistryTest::testDef

Test the JRegistry::def method.