Daniel,
There is a bug in MS Project which causes an incorrect XML save of an MPP file. Let me send you a sample .mpp file (created from task 1.6.3.6 in the sample you provided) with a single task, which after saving as XML, and reopening in MSP, loads with wrong EndTimes!
RQ Support