adaptive weighting to Bartlett Test