Test Coverage for generateGraphJson: fixed #30, fixed #28, fixed #27, fixed #24.