fix TestDeleteDiagrams