Testing the water for bact. is always a good idea, but not all bact. are a health risk. Most slime and odor causing bact. are just a nuisance. They do harbor coliform bact. The slime formers are great at building protective housing to prevent the chlorine from working.
When you cannot control the bact. from generating the smell continuous biocide treatment works best.