[tests] Minor tweak for timeouts.
Rename ConnectionInterface::writeCommand() to writeRequest().

This name is more consistent with its counterpart, readResponse().
Make sure raw commands IDs are normalized to uppercase.