Add php example test with various fixes