Once a dedicated and successful Deceiver General, she was tricked by Megatyrant into becoming the test subject for an experiment to try to halt the Infester curse.
The torture endured during that experiment fragmented her consciousness into several pieces. Her code did go down the path of Infesterism, being warped and changed. But somehow her consciousness, or at least one part of it, maintained a level of high functioning cognitive ability.
This allowed the Queen to control the other Infesters and utilise their abilities with some degree of planning and coordination. So in that way, the experiment was successful. However, it was unsuccessful in that neither the Queen herself, nor the Infesters, will ever be under Deceiver control. The Queen has an eternal hatred for anything that is not an Infester and will not rest until the Earth, and everything on it, is consumed by her brood.