dockertest.containers_unittests: Fix and add unittests for containers

Another set of unittests plus couple of fixes, this time about `dockertest.containers`.