Test with karma & MainCtrl