Updated generate-test.js for helper generator

Forgot to update the helper generator and remove the extra semicolon for the check.