added test for flattening to ascii.