This fixes unit test failures, but it brings back the original bug. ie. clicking on a deleted or renamed file does not show error.