Add tests for enableLogging and add path to code coverage