Adapt repl tests