Replaced sleep() with sync vars in a test