Refactor XingContactMappingTest.