update generate-test.js