Compass test for PhoneGap