node test and small bug fix