add reply method test

- refactor reply method for testable code
- delete reply method and add get_reply_message
- add get_reply_message method test
- add test data file