testing angularjs and riot api