A moment-based test for the homogeneity in mixture natural exponential family with quadratic variance functions