Change test to test the dictionary object, not the json string