test for directive