add some junit test,fix read wrong file bug