leaky-layer-tests: handle pulling in dependent layers

Signed-off-by: Christopher Larson <chris_larson@mentor.com>