fixed unittests for directives