Set cwd and remove exec-php php function from object
Add more test condition