add directive generator test