Add unit test for JSBuffer "put from JS array" functions

Add unit test for JSBuffer "put from JS array" functions