using ng-submit
Added angular tests