added client unit tests for directives