test diagram element indexing