Test the directive.