Testing angularjs