added test codes for nodejs