Corrections for 0.4.0 from MesoNH test cases