Fixed test so it is more predictable.