Add open states tests to diagram core tests