magnesium test