Design and test of a microwave resonator for the measurement of resistivity anisotropy