Add module.exports as karma now requires it.
Fix log level definition.