This code is used to test the HMC5843 class.