Fix specs to not rely on buffer ordering.