Improve test suite for node module