[JS] Fix unit test
Merge pull request #438 from phvannor/dev

[JS] Fix unit test