Fix tests and extract BlueprintsGraphDatabase base class