fix potentially broken spec in record.to_s
neaten spec for record.to_s
fix up record.to_json spec to be more like to_s spec