Adding an example unit test for directives

Adding an example unit test for directives