Convert the error stream before comparing with reference