Fixed #102 : move useless JUnit assert out from child threads

Made a fix for issue #102
- Move the useless JUnit assert out from testing child threads
- Use some int variable to record the amount of resources in hand when it exceeds max pool size
- Will raise the error message in JUnit fail when the test is done.