Is there any way to test a breaker?

its either the motor is pulling to many amps or the breaker is just weak. if you have a meter with an amp probe you can check it yourself while the compressor is running.there should be a plate on the motor that tells you what the amp and voltage ratings of the motor. i would guess you would need at least a 50 amp breaker . a 2.5 hp motor under full load i would guess it would take 35 amps i am no electrical guru just an old maintenance mechanic