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