Fix TestDockerCmdExecFactory
Added some shortcut methods in the API
Code formatting