finally the task is in working condition, added sync exec function and it works so beautifully.
test subject changed