fix pieceMgr bug
add a torrent transfer test (not completely working yet)