added test_electronic_magnet