a collection of helper functions for writing AngularJS unit tests