- Restored the recv_timeout for test backward compatibility.

- Restored the test handle-management mechanism for test
  backward-compatibility.

- Fixed a bug in the way test machinery used internal handles.