added threadPoolKey
Modified test
Code refactoring.
1 stage