add directive test