Fix karma config and restore AppCtrl tests