Core XYZ test code