added repl tests. fixed repl bug. the remove of find_var_nodes caused a crash.