prevent test process from hang in some cases
Merge pull request #4 from asd-and-Rizzo/master

prevent test process from hang in some cases