dimed lights and corrosion

If the battery was tested good it can still be bad? Also what about my voltage regulated would that cause over charging..... if the battery was bad or I hate the fact that it leaks would getting an optima battery fix the acid problem