Dye testing is used to determine if surcharge in a drainage system area is in fact sewage effluent. Dye testing is also used to determine the flow of water through pipes and sewers. A smoke test can be done to help determine if there is a broken or separated pipe, and it can also determine the location of leaks.