SD-661 : On comment save detect if any user has been mentioned on comment and generate the notification

Fixed the user and comment checks on tests. Rewrite some for statements
on lists as list comprehensions.