Add test case for sendAction.