Added Karma/Jasmine tests for the AngularJS controllers