test(*): add tests for directive