added tests and factory for comments