Fix error test output

This commit fixes the various log4j:ERROR Attempted to append to closed appender named [stdout] errors that appear.