A phalanx fighting to the flank loses its phalanx bonus see page 126 third column middle paragraph regardless of whether its disordered or not.
If they passed the command test they do get the rank bonus
In the proposed errata, then taking the test to the flank or rear, there is a modifier to the command test to put more pressure on the owning player to throw in SIPS or just hope they get lucky 🙂
Thats proved popular
I can’t comment on your dice rolling!! It may be better than mine — or worse!