Add unit tests for nodejs