add a public method to return the kernel

I need this to test validator 

````

validator = $client->getKernel()->getContainer()->get('validator');
````

can be usefull for other usage I guess