added unittest for file input.
added init file input before REPL.