Merge "Adjust testMutate to not rely on undefined behavior" into qt-dev