fix clip relations in bbox_side, adjust tests