repl test cleanup