Cake3 integrationtest

Use IntegrationTestCase instead of ControllerTestCase and other fixes as per core changes.