fix magnet test