Strings.collect() tests