Test of dynamic AngularJS directives