Updated karma test main controller.