testing of angularJS