magnesium testing methodology