Fix service manager config so custom extensions work. Added tests. Fixed...

... bug in ODMCore/Extension constructor.