Document get_max_distance, add tests that max. dist. is not altered.