Added a karma test for an angular controller.