Fixed tests for PHP5.3