Add tests for document debug methods