Testing directives for AngularJS