Merge pull request #23 from lbudai/f/failover_refact

tests: be careful when using a broken socket