Adapts tests to they create the same result when using PHP 5.3 and 5.4