Discussion integration tests

End to End integration tests added for Discussion 
I would extract this if condition into a method and give it a descriptive name. E.g.: if(descriptiveMethodName())