Measurement of the non-uniform form effect in magnetostriction