Updated some tests to be compatible with PHP 5.3