Fix initialization order problem in tests.
Merge branch '2.2.x_2.10' into 2.3.x_2.10