Convert System.out.println() calls in test code to logger.debug

Posted by deepakjois:

This is trivial, but I also wanna make sure we have a way to turn on debug logging while running tests. Need to look up the right switches to do that in gradle etc.