Add test cases for repl interface.