Put repeated tests into function
Put repeated tests into function

Testing topic and reply is common test, so put them into function makes
easier to repeat it.

Ajnasz/hubot-pushbot,Ajnasz/hubot-pushbot