nodejs testing code