Changed JSON methods in test file