Obtaining fluid samples or testing fluids, in boreholes or wells