Temporary hack for #4313

Also deprecating ControllerTestCase, it will be replaced by another
more robust solution that will have a bigger emphasis in integration
testing.