add test for angular.xxx functions