I am failing to add a heading for the appendix to the ToC with the correct page number:
\documentclass{scrbook}
\begin{document}
\tableofcontents
\chapter{test}
\appendix
\addcontentsline{toc}{part}{\appendixname}
\chapter{First Appendix}
\end{document}

I also tried to use the \addappheadtotoc command from the appendix package, but that changes nothing (expect that it writes 'Appendices' instead).
I assume that the appendix package provides the solution, but I could not figure out how to use it.
