test a simple directive.