adding unit tests for the directives