Add test for flattening non transparent files