mods to test_errorEvent_sender to enable mock of send so doesn't fail on TravisCI.