add stream to errorLogger in test