(test) Wrote tests for main.js

Wrote tests which covers mains.js 100% when ui.router is commented out. Tests functions and assures basic setup for testing is correct, minus issues with routing dependencies.