Test parsing of big document which needs reallocation of memory

Signed-off-by: Michal Čihař <michal@cihar.com>
Test writing of a document

Signed-off-by: Michal Čihař <michal@cihar.com>