Move common test cases to CommunicatorTestCase.