Added tests for File class