change network timeout from zero to 2 sec, add network tests