added tests for Repl