tests in angularjs