Improve coverage of docker_registry.lib.layers module.

Looks like a mistake, and likely to break the behavior of anything that consumes this.