sync_test for Windows

Hi Yusuf,

Please have a review to merge my update code.

NqMinh