FORGE-1565: Added tests. ServiceRegistryImpl.loadClass returns the wrong class though