Improve coverage of docker_registry.lib

Docker-DCO-1.1-Signed-off-by: Gabor Nagy <mail@aigeruth.hu> (github: Aigeruth)
Merge pull request #463 from Aigeruth/enhancement/coverage_of_lib

Improve coverage of docker_registry.lib