Add test to verify timeout on connect. Tested on both Ruby V2 and JRuby 1.7.3