You said you checked the compressor is getting power with a test light however a test light will glow with low voltage. Use a volt meter, I bet you have a corroded wire in there, fridge can't pull the amps it needs.
I had this problem, fridge was getting 12 volts but wouldn't turn on. Ran on...