added tests for comment relationship and Flag relationship