AngularJS testing, examples