Fixes most failing tests related to merging and sample rates.