demo on testing in angularjs