Just a few unit tests based around $q AngularJS promises