Correct angularjs testing