dockertest: Improve unittests and pylint/pep8 fixes

Hi guys,

this is rebased and updated version of all unittest-related patches.

Kind regards,
Lukáš