Discussion integration tests

Needs another review please...
System.err is a bad code smell which should normally not be used. Rather use logger.error("...")