Added the notion of tryCommit for tests.

tryCommit will only commit if the feature is supported on the graph.  Also added an overload that takes and assertion Consumer which will try to assert before and after the commit.