remove double import and fix test in repl.js