improved test on strsplit