unit tests

$connection->error after finish contains the error received
unit tests retransmit

same tests as 02-basic.t with retransmit enabled