Key exchange test case