factor out testing code
buffered producer subclass