Fix issues in azimuth test.

Azimuth test now runs correctly on trail hardware.