change Tpex config using Depency Injection
add some phpdoc
fix test suite issue