New test to check that two flattens on the run are idempotent