Bayesian Testing for Exogenous Partition Structures in Stochastic Block Models