clean tests for set_rest_at_median()