I had the same problem recently and it was hard to find.

I think you should use
Zend_Controller_Action_HelperBroker::getStaticHelper(‘Json’)->suppressExit = true; in your test script instead of overriding the class