Create test_cond.cpp

created test for posix condition