Add chat test.

This code cannot be completed until the client code is closer to done.