added test for calc_max_length_after_dot