Test for SmCo magnet