Testing an angular.js App