Testing AngularJS application