to test the cmos, just go to walmart buy the battery, pop it in, if it works you fixed it if not its something else. Many problems can come from your psu, ram, etc...So if the new battery didnt fix it try running memtest on your ram, if nothign there, then check all your conections to the psu...