Changed tests to support PHP 5.2 :(