Add tests for the testecho command.

Ensure ServerTestCase shuts down cleanly.