Unit test for commentsController