Disable logging in unit test.

Previously, error messages from the bad test configurations would show
up in the console, but these are expected.