change <<toc>> stuff:

* Add more unittests
* Now it's possible to insert a headline before <<toc>>
* Format html a little bit better
bugfix unittest

* works for me with python2 and python3
* better error message if unittest failed