Implemented CanCreateComment test + minor refactoring