test of a magnetic field