producer-consumer test seems to work