fix TestOpenDiagram