Added unitary tests; Corrected bug with wrong streams; Shortened period of larger timeouts; Changed hash exchange to the end of the transfer