Tutorial testing of AngularJS