unit test toolDirective