1. add junit test for ThriftTemplate and ThriftConnectionPool.
2. fix some bugs.