Note that the compressor test can tell you if a compressor is bad, it does not tell you that the compressor is good as it may have other internal problems.
Check the compressor start relay.
Often this is hard to check so usually folks just replace it to see if it fixes the problem.
Same goes with a start/run capacitor if the unit uses one.