magnesium sulfate test