Bug 858399 - context menu should work in panels

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

or use a custom loader and you can remove the `panel.destroy();` calls