updated testing.js