test trajectory command.