Jasmine testing context menu