add changes to make magento TAF run
fix php deprecated warning and add test for this