What a shame for all involved at XL Germany, Air NZ and the NZ CAA.
The "test" flight would not be connected to the C-check. More likely, they were flying an acceptance flight profile which is quite common when a used aircraft changes owners / lessors.