Fix RemoteTorrentHandler and all unit tests