added a registration function and test for the registration of exchangers