Add the test case for the new flattern flag.