Add ActionRemoveSelf in TestCpp/ActionTest

Add ActionRemoveSelf in TestCpp/ActionTest