Implemented menubar unit test for Analysis view
* Removed dead/unnecessary code from Analyses menu
* Implemented unit test for analyses menu bar
* Had to refactor AnalysisExecutionStatus for unit testing
CORE-5307