Unit tests renamed
Unit tests for main.js updated to be at least 1 unit test per function in the real module.
Renamed Logger to logger