how to test controller in angularjs