Stubbing error logger in test to reduce console noise