added unit tests for chat app