Reduce exception logging during tests