Test for ng-submit