directive error test