Fix test to avoid the use of non-existent php5.2 methods