Move FakeTerminal to test/repl.jl