The problem is related to T8033. The fix for this bug can fail under rare circumstances.
In line 128 and 129 of mitkVirtualTrackingDeviceTest the position and the modified time are got from a tool:
tracker->GetToolByName("while Running")->GetPosition(posAfter0);
unsigned long tmpAfterMTime = tracker->GetToolByName("while Running")->GetMTime();
The position of the tool can be changed directly after getting the position. In this case the modified time is already changed when calling GetMTime().