Added a factory and model test for comment

Added a factory and model test for comment