test suite for flattoc