made reconnect timeout configurable and fixed tests