Reusable AngularJS test abstractions