Convert TestGetContainersByName into a unit test

Docker-DCO-1.1-Signed-off-by: Guilherme Salgado <gsalgado@gmail.com> (github: gsalgado)
Merge pull request #6405 from gsalgado/migrate-test-getcontainersbyname

Convert TestGetContainersByName into a unit test