Test producer-consumer