C.E. Evans wrote:
As far as Pulaski, it could merely be a case of her having been promoted in order to have greater seniority at a previous assignment.
Which still proves it is possible for blueshirts to reach commander rank without taking a bridge officer's test. Admiral McCoy and Commodore Stocker also show that it is possible reach flag rank without commanding starships.