Implement and test a function for creating topic exchange keys