Bug 858399 - context menu should work in panels

Tests added for `contextMenu` options (see pull #1542).

need a `panel.destroy();` call here