Add tests for connect timed out and read timed out