refactored FlatMerge test to use latches to generate a test serialization schedule that uses latches to ensure certain happens before pre-conditions are always true