test.sh updated with phoenix code