Tips and tricks for AngularJS testing