Fix spec which failed depending on array order