AngularJS test case