test for simple directive