add clean close test
cleanup connect error handling and test
add send in wrong state test
define behaviour whnen connecting twice
improve test description