add new method into File and update unit test