function getBBoxOfElementAsPath (elem, addSVGElementsFromJson, pathActions) {
      const bbox = utilities.getBBoxOfElementAsPath(elem, addSVGElementsFromJson, pathActions)
      return utilities.bboxToObj(bbox) // need this for assert.equal() to work.
    }
Wrap `utilities.getBBoxOfElementAsPath` to convert bbox to object for testing.
@type {module:utilities.getBBoxOfElementAsPath}