Add error testng to new.js