Testing of AngularJS