Fixed get enabled types permissions.
Default values for config.
Various changes to make tests run...