Add tests for cmd::torrent