tests with magnetic field