Update NodeJS r2 generic api test program and api