\documentclass{book}

\begin{document}

\frontmatter
\input{frontmatter}

\mainmatter
\input{chapters}

\appendix
\input{appendix}

\backmatter
\input{backmatter}

\bibliography{test}
\printbibliography
\printbibliography{Testing}
\printbibliography[Some option]{Testing}
\printbibheading
\printbibheading{Testing}
\printbibheading[Some option]{Testing}
\begin{thebibliography}
\end{thebibliography}

\printindex
\printindex[Some option]

\end{document}
