Remove error messages from console in tests.