Added getter and ChatServer Test case