some formatting and unittest changed, so it tests the conversion of the json object