[js] arguments: add nested function test