Fixed Json tests to work on other PHP versions