Replaced test.cpp sleep with unistd sleep