Fix require() problem with whole module, correct testing port