[added] abstract base class for future testcase-based classes and tests for an empty graph