\chapter{Appendix 1}
This test document is created to test advanced TOC functionality.

\section{Appendix subsection}

\subsection{sub}

\subsubsection{subsub}

\paragraph{par}

\subsection{Test sub section 1}

\chapter{Appendix 2}
\label{chap: appendix 2}

\section{Testing TOC levels}
Testing more input and TOC levels.

\subsection{Testing TOC sub levels}

\subsubsection{Testing TOC sub sub levels}
Hello world.

\subsubsection{Text $\Gamma^{r}(\ensuremath{{\mathbf{Z}}}_p^d,\mathbf{K})$}

\subsection{Another test subsection}

\subsubsection{Other text $\Gamma^{r}$}

\section{Testing more appendix levels}
Testing more input and TOC levels.

\subsection{Testing TOC sub levels}

