Tests for context menu directive