Fix JavaScript/test.sh script to work with new style test
Fix PHP/test.sh script to work with new style test