duplicated all relevant tests from sendRequest for sendMessage