tests for simple directives