Add repl and test