add check to producer test for nil error