testing conditional variable