Move tests to top-level directory.
Add support for auto-reply messages.