issue #3541 : Add test case for ccactions. Fix a bug for "Pre" button.

Add test case for ccactions. Fix a bug for "Pre" button.