fixed broken tests in torrent client.