Update tests to account for missing fields, handle median values correctly