dockertest.dockercmd_unittest: Add unittests for dockercmd

Next set of unittests for dockercmd complemented by pep8/pylint fixes.