add FileInfo unit test, add new api appendText