1103330 - updating various functions and unit tests to support docker im...

...ages have multiple leaf layers and parents having multiple child layers

https://bugzilla.redhat.com/show_bug.cgi?id=1103330