(test) Tried to refactor unit tests for main.js.
(test) Wrote tests for main.js for when state dependency gets resolve.
Merge pull request #132 from adam-back/test/main.js

Great tests