fixed synchronization issue in test code
Merge remote-tracking branch 'origin/master'