refactor flash message for creating a comment
create comment factory
write test for creating a comment