test using AngularJS