Added tests for action listener.