Testing with AngularJS directives