added registration_response config option and test. fixed #23