[*] Tests

Add new bunch of tests for both Javascript and Java