test cmd index