Moved deletion test in file management.