HF RL Explorer

Fix bug in xyz writer and add appropriate unit test

Fix bug in xyz writer and add appropriate unit test: a task in life-science-SWE1.0 (Harbor dataset). Title: Fix bug in xyz writer and add appropriate unit test

The task

**Title:** Fix bug in xyz writer and add appropriate unit test

Part of scalingX/life-science-SWE1.0.