Add test to support nested dependencies.