Fix testing bug.

Bug from implicitly assuming dict ordering.