Move assertion method for counts in graph to abstractgremlintest.