refactored edit comment
also added a negative test for edit conmment