Improved test startup sync

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>