public void addTestButtonActionListener(ActionListener l) {
        final ActionListener[] originalActionListeners = testButton.getActionListeners();
        for (ActionListener actionListener : originalActionListeners) {
            testButton.removeActionListener(actionListener);
        }
        testButton.addActionListener(l);
        for (ActionListener actionListener : originalActionListeners) {
            testButton.addActionListener(actionListener);
        }
    }