Add a kernelReset attribute to controle kernel reseting on client creation.

During tests of controllers with a database connection inside, the connection is lost by kernel reseting.
This PR allows to disable kernel reseting and avoid this problem.

Note : I don't know how to test it.