Testing, calibrating, or compensating of compasses