flattening tests