Fix order-sensitive unit test.