added reference to factory state in test for creating comment