Commands unit tests 1

This enforce the behaviour of CmdRun (non detached) and CmdAttach:

- When using CmdRun in non detached mode, client disconnection result in process stdin to be clised
- When using CmdAttach, client disconnection does not affect the process