quality testing of magnesium alloys