If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency: ...
You don't have to modify CodeIgniter core files at all. You can write controller tests easily. Nothing is untestable, maybe. Well documented. codeigniter/ ├── application/ │ └── tests/ │ ├── ...