To test the pH of a shampoo bar accurately, indeed, dissolving a small part of the bar in water and then using a pH test strip can give you a general idea. However, it's important to note that the water itself can have its own pH and can affect the results. So, ideally, distilled water should be used because it has a neutral pH, making your results more reliable.