revert change and switch tests to standard json.dumps()