Rewrote the tests for xlocalize

Reworte the tests for xloclize (npm run test-bin) from Shell to Node.js