A GOODNESS-OF-FIT TEST FOR STOCHASTIC BLOCK MODELS