Water must be safe to drink before it is used to prepare coffee. That does not mean its composition will produce the desired flavour with every coffee or suit every piece of equipment. Equally, an improvement in flavour does not establish that the water is safe.
Where safety is uncertain, tasting and total dissolved solids measurements are not substitutes for appropriate water-quality assessments. Chemical and microbial hazards require tests that address those hazards; the senses alone cannot establish their absence. WHO drinking-water quality guidelines