Comparison between experiment and perturbation theory for solitons in Josephson junctions