Add unit test
Merge branch 'javascript-porting' into jake-thruput-with-rtt