Bug 858399 - context menu should work in panels

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

I already used custom loader, but I totally forgot to call `loader.unload` at the end of each test. Thanks to point it out!