Add unit test for file deletion