Finished unit tests for chat component.