test of a conditional value blocking work passing from one thread to another