Add test on #to_s with allocated URI::Generic