Reset System.out to stdout in Logger test

Setting system.out to null will cause null pointer exceptions in later
tests. Instead, store the default value of System.out as stdout, and
after tests run, reset System.out to stdout.