Test of neglected heterogeneity in dyadic models