Moved tests for auto-replies into a separate method and add tests for
it.