Added tests for GraphElement.

All 301 tests pass.