Testing with directives