Bitcore explorer insight testnet initialisation
Try this 

const bitcore = require("bitcore-lib");
const Insight = require("bitcore-explorers").Insight;
insight = new Insight(bitcore.Networks.testnet);


then do the rest.