added magnetic field tests