add test for connect socket error and bump version number to 0.2.2