Updated tests to make it compatible with php5.3