Add more tests; fix return type of send_message/action.