Make Document tests work again.

Removed former document manipulation tests.
This will be moved to the Writer.