added another test case to flattened