Horses are horses, not people, but much like people they can have off days, and will test the people and other horses in their lives. I look at it like dealing with a little kid. Even if he's in a bad mood, tough noogies, thats no reason to act on the grumpiness and be completely unpleasant to be around.
As far as the way to deal with your horse when he gets "testy," I would follow the very same ask, suggest, encourage progression as I do for everything else. If he's doing something that you don't like, ask him to stop, and leave him alone, expect him to do as you ask. Progress to a suggestion and to stronger and stronger encouragement until you get the response you want. If he's doing something that could rapidly become dangerous, I won't hesitate to get my horse the heck out of my space with whatever I have on hand.
For example... if I have Scout in the crossties and he is antsy, I'll click my tongue and "raise my energy" to scoot him over. If he doesn't respond, I'll touch him on the side, where my leg would go to ask for a sidepass and click. I'll increase the pressure of my hand until he moves. If I can't get a response (for whatever reason) I'll do a little more of a "jabbing" sort of poke. Sort of goosing him in the side with rhythm. I've never had to suggest any stronger than that, I honestly can't say what the next level would be.
However, if he's in the crossties and swings toward me, pinning me close to the wall as I'm asking him to move away, I'll give him a smack, no questions ask. Squishing me isn't cool. It's one thing to totally ignore a cue that he understands, it's another to do the polar opposite. Note:
this example excludes the possibility of a frightened horse or a horse who doesn't understand how to move in the manner that has been asked.
As far as your impatience effecting your horse, here's a good thread on a similar topic, if you haven't read it already. https://www.horseforum.com/horse-trai...afe-you-41696/
You might try some of the techniques outlined in the video to "leave the impatience behind" in a similar way. I know that if I'm in a hurry, and acting on my rushed feelings and only thinking about getting things done, my sweet ponies are a lot more likely to become pigs.
I hope that answered your question a bit.