Upgrade to 4.0.31

as older version was failing tests.