test the flatdoc