Test ModuleOptionsFactory and Module config