issue #1758 : Add test case.
Merge pull request #1382 from SmallAiTT/npm

issue #1758 : Add test case.