Angularjs testing with ML-API