Test case with directive.