Degree‐based goodness‐of‐fit tests for heterogeneous random graph models: Independent and exchangeable cases. (29th October 2019)