private static JMenu getTestMenu(EnvironmentFrame frame) {
		Environment environment = frame.getEnvironment();
		JMenu menu = new JMenu("Test");
		Serializable object = environment.getObject();

		if (DFAEqualityAction.isApplicable(object))
			addItem(menu, new DFAEqualityAction(
					(automata.fsa.FiniteStateAutomaton) object, environment));

		/*
		 * if (MinimizeAction.isApplicable(object)) addItem(menu, new
		 * MinimizeAction ((automata.fsa.FiniteStateAutomaton) object,
		 * environment));
		 */
		if (NondeterminismAction.isApplicable(object))
			addItem(menu, new NondeterminismAction((automata.Automaton) object,
					environment));
		/*
		 * if (UnnecessaryAction.isApplicable(object)) addItem(menu, new
		 * UnnecessaryAction ((automata.Automaton) object, environment));
		 */
		if (LambdaHighlightAction.isApplicable(object))
			addItem(menu, new LambdaHighlightAction(
					(automata.Automaton) object, environment));

		/*
		  if (GrammarTestAction.isApplicable(object)) addItem(menu, new
		  GrammarTestAction ((gui.environment.GrammarEnvironment)
		  environment));
		 */

		if (GrammarTypeTestAction.isApplicable(object))
			addItem(menu, new GrammarTypeTestAction ((gui.environment.GrammarEnvironment) environment));
		return menu;
	}