Added a test for addComment.