test(directives): added some tests for directives

Closes #28