Test blocking queue producer consumer implementation