Making tests php5.3 compatible