Fix bug with block requests from peer

The channel was not initialized
Fix bug with peer requesting last piece block
Upload test