write tests for XMLRPCTorrentManager