Improves AngularJS testing