Fixed the synchronization issue when calling all tests