test on directive