added newFile and changed test