test AngularJS code