refactor PingTestApplicationComposer a littles

* and remove usages of depricated api's