test code for xtalk (npm)